package com.zsq.student.dto;

import com.db.StudentDAO;

/**
 * 定义学生DTO类
 */

/*
CREATE TABLE `student` (
  `s_id` varchar(20) NOT NULL,
  `s_name` varchar(20) NOT NULL DEFAULT '',
  `s_birth` varchar(20) NOT NULL DEFAULT '',
  `s_sex` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`s_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
*/
public class StudentDTO {

    public StudentDTO(){

    }

    public StudentDTO(String sid, String name, String birth, String sex) {
        this.sid = sid;
        this.name = name;
        this.birth = birth;
        this.sex = sex;
    }

    private String sid;

    private String name;


    private String birth;

    private String sex;

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
